package bpmn.structure;

import java.util.ArrayList;

public abstract class ProcessElem extends BPMNElem
{
    protected String name;
    protected final ArrayList<String> outgoingRefs;
    protected final ArrayList<String> incomingRefs;

    public ProcessElem(String id)
    {
        super(id);
        incomingRefs = new ArrayList<>();
        outgoingRefs = new ArrayList<>();
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public ArrayList<String> getOutgoingRefs()
    {
        return outgoingRefs;
    }

    public void addOutgoingRef(String ref)
    {
        outgoingRefs.add(ref);
    }

    public ArrayList<String> getIncomingRefs()
    {
        return incomingRefs;
    }

    public void addIncomingRef(String ref)
    {
        incomingRefs.add(ref);
    }
    //    public abstract BPMNElement getParseElement();
}

